
package com.cmc.service.impl;

import java.util.List;

import com.cmc.service.impl.BaseManager;
import com.cmc.model.OrgLevelSetting;
import com.cmc.dao.OrgLevelSettingDao;
import com.cmc.service.OrgLevelSettingManager;

public class OrgLevelSettingManagerImpl extends BaseManager implements OrgLevelSettingManager {
    private OrgLevelSettingDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setOrgLevelSettingDao(OrgLevelSettingDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.cmc.service.OrgLevelSettingManager#getOrgLevelSettings(com.cmc.model.OrgLevelSetting)
     */
    public List getOrgLevelSettings(final OrgLevelSetting orgLevelSetting) {
        return dao.getOrgLevelSettings(orgLevelSetting);
    }

    /**
     * @see com.cmc.service.OrgLevelSettingManager#getOrgLevelSetting(String id)
     */
    public OrgLevelSetting getOrgLevelSetting(final String id) {
        return dao.getOrgLevelSetting(new Long(id));
    }

    /**
     * @see com.cmc.service.OrgLevelSettingManager#saveOrgLevelSetting(OrgLevelSetting orgLevelSetting)
     */
    public void saveOrgLevelSetting(OrgLevelSetting orgLevelSetting) {
        dao.saveOrgLevelSetting(orgLevelSetting);
    }

    /**
     * @see com.cmc.service.OrgLevelSettingManager#removeOrgLevelSetting(String id)
     */
    public void removeOrgLevelSetting(final String id) {
        dao.removeOrgLevelSetting(new Long(id));
    }
}
